package com.geovis.emergency.spd.biz.basic.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.geovis.emergency.spd.entity.basic.entity.BasicShareDoc;
import com.geovis.emergency.spd.entity.basic.entity.BasicShareFolder;
import com.geovis.emergency.spd.entity.basic.pojo.vo.ShareDocTreeVO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 基础模块-共享文档 服务类
 * </p>
 *
 * @author Lonsho
 * @since 2022-07-12
 */
public interface IBasicShareDocService extends IService<BasicShareDoc> {

    BasicShareFolder getOrCreateRootFolder(String drillId);

    /**
     * 上传文件到文件夹
     * @param file
     * @param folderId
     * @param pcDrillId
     * @return
     */
    ShareDocTreeVO uploadFileInFolder(MultipartFile file, String folderId, String pcDrillId);
    /**
     * 上传文件夹
     * @param files
     * @param folderName
     * @param folderId
     * @param pcDrillId
     */
    List<ShareDocTreeVO> uploadFilesWithFolder(List<MultipartFile> files, String folderName, String folderId,String pcDrillId);
}
